home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / Development Tools & Languages / AEGestalt / UAEServerCommand.cp < prev    next >
Encoding:
Text File  |  1995-02-05  |  860 b   |  38 lines  |  [TEXT/MPS ]

  1. //     Copyright © 1991-92 Apple Computer, Inc. All rights reserved.
  2. //    UAEServerCommand.cp
  3. //    Kent Sandvik DTS
  4. //    This file contains the TAEServer member functions, for serving
  5. //    incoming Apple events.
  6. //
  7. //    <1>        khs        1.0        First final version
  8.  
  9.  
  10. #ifndef __UAESERVERCOMMAND__
  11. #include "UAEServerCommand.h"
  12. #endif
  13.  
  14.  
  15. //    Empty constructor - for avoiding ptabs in global data space
  16.  
  17. #undef Inherited
  18. #define Inherited TServerCommand
  19.  
  20. #pragma segment ARes
  21. DefineClass(TAEServerCommand, TServerCommand);
  22.  
  23. TAEServerCommand::TAEServerCommand()
  24. {
  25. }
  26.  
  27.  
  28. //    Process the incoming client AppleEvent, and return the needed information,
  29. //    in our case the gConfiguration structure resident in memory.
  30. #pragma segment ADoCommand
  31. void TAEServerCommand::DoIt()
  32. {
  33.     fReply->WriteParameterPtr(kAEConfig, typeConfig, (Ptr) & gConfiguration, sizeof(gConfiguration));
  34.     fReply->Send();
  35. }
  36.  
  37.  
  38.